package com.hxs.colorfultest2.dao;

import com.hxs.colorfultest2.domain.Factory;
import com.hxs.colorfultest2.domain.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface FactoryDao {
    /*增加厂商*/
    void addFactory(Factory factory);

    /*更新厂商权限*/
    void updateFactory(Factory factory);

    /*获取所有厂商*/
    List<Factory> getAllFactory();

    /*获得厂商的总记录数*/
    int getFactoryByTotal();

    /*获得分页厂商*/
    List<Factory> getFactoryByPage(Map<String, Object> paramMap);

    /*检验厂商名是否重复*/
    boolean checkName(String name);

    /*删除厂商*/
    void deleteFactory(String name);

    /*根据厂商名查找*/
    Factory getFactoryByName(String name);

    /*根据厂商ID查找*/
    Factory getFactoryByID(int  id);

    /*获取废弃厂商*/
    List <Factory> getDeleteFactory();



}
